SCRIPTPATH=`dirname $0`

echo "CRVClient started..."
echo "SCRIPTPATH=$SCRIPTPATH"

sh $SCRIPTPATH/setuphostname.sh

#Tell CloudCRV that I'm started, prepare the metadata for me.
python $SCRIPTPATH/setStarted.py $SCRIPTPATH/values.pickle

#echo "setting up puppet..."
#sh $SCRIPTPATH/setuppuppet.sh

echo "doing yum update"
#yum -y update

echo "sync time"
ntpd -q -g -D 9

#In here will 1st setStarted, then wait for ProfileProvided, then start puppet, then hand over to puppet forever

rm -frv /etc/puppet/puppet.conf

python $SCRIPTPATH/startupPuppet.py $SCRIPTPATH/values.pickle



